package com.example.demoserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demoserver.entity.HousePart;
import com.example.demoserver.entity.HousePartsInfo;
import com.example.demoserver.service.HousePartService;
import com.example.demoserver.mapper.HousePartMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【house_part】的数据库操作Service实现
* @createDate 2024-01-25 09:59:05
*/
@Service
public class HousePartServiceImpl extends ServiceImpl<HousePartMapper, HousePart>
    implements HousePartService{
    @Autowired
    HousePartMapper housePartMapper;
    @Override
    public List<HousePartsInfo> selectAll() {
        List<HousePartsInfo> list=housePartMapper.selectAll();

        return list;
    }

    @Override
    public HousePartsInfo selectInfoById(String id) {
        HousePartsInfo housePartsInfo=housePartMapper.selectInfoById(id);
        return housePartsInfo;
    }


}




